from Crypto.Cipher import AES
a = "A8D7C42AD8DA2A82CDDF98F6D8CC702CC0B8A2B9A62B54F8C22B965A33111956BA419210AE32B33BF625D4788454A24B0BD6E580A7C60661D2993A9C93013D5BA3651235A2A91B786EC385C643004EF7A454603294D48D16E49EC3E4D9BA37BBFA3B1E5FCDBB053195858B9C4D5627DA700C7CFB645F4432ACA33DD4381495D5"


def aesDecode(self, data, key):
    # '''
    # Decode the data
    # :param data: stream, the data need to decode
    # :param key: secret key
    # :return: decode the data
    # '''

    crypt = AES.new(key, AES.MODE_CBC, key)

    plain_text = crypt.decrypt(data)

    return plain_text.rstrip(b'\0')


b = aesDecode()
print()
